home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Advisor / CD-ROM Advisor.iso / prodemo / demo / dylan.dxr / 00001.ls next >
Encoding:
Text File  |  1995-09-13  |  1.4 KB  |  34 lines

  1. on startMovie
  2.   global gNameOfSoundFile, gChannelForHighButtons, gChannelForSound, gCuesForVoice, gLabelsForVoiceCues, gCountOfCues, gPreTicksForCue, gNextCueIndex, gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
  3.   set gNameOfSoundFile to "DYLAN.AIF"
  4.   set gChannelForHighButtons to 5
  5.   set gChannelForSound to 1
  6.   set the puppet of sprite gChannelForHighButtons to 1
  7.   set the visible of sprite gChannelForHighButtons to 0
  8.   set the ink of sprite gChannelForHighButtons to 0
  9.   set gCuesForVoice to [109, 125, 245, 294, 415, 585, 775, 1087, 1210, 1515, 1660, 2026, 2269, 2794, 3176, 3601]
  10.   set gLabelsForVoiceCues to ["is", "hello", "h2", "hey", "yeah", "dont", "vigout", "before", "was", "soaroff", "bet", "enough", "encoff", "unless", "maybe", "never"]
  11.   set gCountOfCues to 16
  12.   set gPreTicksForCue to 45
  13.   set gRadiusOfExitButton to 32
  14.   set gCenterOfMenuH to 141
  15.   set gCenterOfMenuV to 443
  16.   set gUseMenuButton to 0
  17.   set gLabelForEndScreen to "endinfo"
  18. end
  19.  
  20. on isWithinExitButton h, v
  21.   global gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV
  22.   set hComp to gCenterOfMenuH - h
  23.   set vComp to gCenterOfMenuV - v
  24.   set r to sqrt((hComp * hComp) + (vComp * vComp)) < gRadiusOfExitButton
  25.   return r
  26. end
  27.  
  28. on stopSound
  29.   global gChannelForSound
  30.   if soundBusy(gChannelForSound) then
  31.     sound stop gChannelForSound
  32.   end if
  33. end
  34.